package com.jielin.handling.entity.vo;

import com.alibaba.fastjson.JSONObject;
import com.jielin.handling.bean.base.BaseSearch;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @author chenzhang
 * @date 2019/5/16 - 15:18
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class WarningVo  extends BaseSearch {
   private String id;
   private String  organizationName;
   private String  roomName;
   private String  handleUnitCode;
   private String  equipmentCode;
   private String status;
   private String  equipmentStatus;
   private String  equipmentReadStatus;
   private String  borrowName;
   private String  borrowCode;
   private String  borrowReadStatus;
   private String    createDate;
   private String    modifyDate;
   private String equipmentRegistTime;//摄像头最大入库时间
   private String auditRegistTime;//卷宗最大入库时间
   private String cabinetTime;//案管柜最大入库时间
   private String recorderTime;
   private  String writerTime;
   private  String scanisterTime;
   private String readStatus;
   private String creatTime;//告警时间
   private String materialOutDay;//卷宗借出超期时间
   private String borrowDate;//借出时间点
   private String alarmType;//告警类型
   private String unitCode;
   private String  startDate;//开始时间
   private String endDate;//结束时间、
   private String unitCodes;
   @Override
   public void setQueryCondition(JSONObject queryCondition) {
      this.status=queryCondition.getString("status");
      this.startDate=queryCondition.getString("startDate");
      this.endDate=queryCondition.getString("endDate");
      this.unitCode=queryCondition.getString("unitCode");
      this.unitCodes=queryCondition.getString("unitCodes");
   }
}
